/**
 * Created by Administrator on 2017/9/17.
 */
import { createStore, applyMiddleware, combineReducers } from 'redux';
import toDoApp from './modules/toDoApp';

const createStoreWithMiddleware = applyMiddleware( )(createStore);

const reducer = combineReducers({
    toDoApp
});

const configureStore = (initialState)=> createStoreWithMiddleware(reducer, initialState);
export default configureStore;